Validator-Type Reference
Here is the master-list of all the current validator types. Click on one to see its details.
Note - For the time being - clicking on a validator will not take you to the detail of that validator, but rather, a large page with details on all the validators. This is because I have yet to implement an xpointer system for node-grabbing. Apologies for subjecting you to such a large HTML page.
- blank
- Check if field is blank
- length
- Validates to a minimum length.
- equalto
- Validate equality with a 2nd field.
- number
- Validate integers and floats.
- numeric
- Validate numbers as strings.
- alnum
- Validates alphanumeric text to specified rules
- decimal
- Validates a simple decimal format
- decimalr
- Validate a complex decimal format.
- ip
- Validate an IP addres.
- ssn
- Validate a US Social Security Number.
- money
- Validate US currency (or similar) format.
- cc
- Validates credit card input.
- zip
- Validate US Zip Code (regular or +4).
- phone
- Validate US-style phone number.
- Validate an email address.
- url
- Validate a URL.
- date
- Validate a date for format and time-relation.
- select
- Validate a select object for a selected index past 0.
- selectm
- Validate a multiple-select for the quantity selected.
- selecti
- Validate a select against a list of restriced indexes.
- checkbox
- Verify that a certain number of boxes have been checked.
- radio
- Verify that one button in the group has been ticked.
- comparison
- Compare two fields using any logical comparison operator.
- eitheror
- Ensure that one and only one field has data.
- atleast
- Ensures that there is data in at least n fields.
- allornone
- Ensures that either all of the fields int he list have data, or none of the fields in the list have data.
- file
- Restricts file entered to specified filetypes
- custom
- Allows for custom application of regular expression patterns.
- cazip
- Validates Canadian postcodes
- ukpost
- Validates UK postcodes.
- germanpost
- Validates German postcodes.
- swisspost
- Validates Swiss postcodes.